﻿using System;
using Microsoft.Popfly.GameCreator.GameEngine.Events;

namespace Microsoft.Popfly.GameCreator.GameEngine.Behaviors
{
    public abstract class RotateBehavior : MotionBehavior
    {
        public RotateBehavior(BehaviorOwner owner, double offset) : base(owner, offset) { }

        public override bool ReachedDistanceFromStart(DistanceEventChecker distanceChecker, double distance)
        {
            if (RotationDistanceFromStart(distanceChecker) >= distance)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}